package com.example.pojo;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Time {

    //规定时间id
    private Integer id;

    // 早上时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime earlyTime;

    // 晚上时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime lateTime;
}
